﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="msg_attach_view.aspx.cs" Inherits="Ccit.SysPlat.Remind.msg_attach_view" %>

<%@ Register src="../USERCONTROLS/AttachUpLoad.ascx" tagname="AttachUpLoad" tagprefix="uc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" style="width:100%" >
<head runat="server">
    <title></title>
    <script language="javascript" src="../script/jcontrol.js" type="text/javascript"></script>
    <script type="text/javascript" language="javascript">
    
        /* 回复 */
         function doReply(vReceiverId)
         {
            var vPageParam = "RecevierId="+vReceiverId+"&PageSource=6";
            var encodeParam = base64encode(vPageParam);
            window.parent.document.location = "msg_receive_back.aspx?" + encodeParam;
         }
         
         /* 转发 */
         function doForward(vMsgId)
         {
            var vPageParam = "MsgId="+vMsgId+"&PageSource=6";
            var encodeParam = base64encode(vPageParam);
            window.parent.document.location = "msg_send_edit.aspx?" + encodeParam;
         }
         
    </script>
</head>
<body scroll="no">
    <form id="form1" runat="server">
    
        <input type="hidden" runat="server" id="_hidRecentId" />
        <input type="hidden" runat="server" id="_hidMsgId" />
        <input type="hidden" runat="server" id="_hidMsgFrom" />
    
        <table id='tbData' cellpadding = '0' cellspacing='0' width='100%'>
           <tr style="background-color:#EDEDEB">
             <td style="width:10%" align="left">
               &nbsp;<span id="sRecentId" runat="server"></span> 
             </td>
             <td style="width:70%" align="left">
               <span id="sReceiveTime" runat="server"></span> 
             </td>
             <td style="width:10%" align="right" id="tdReply" runat="server">
               <span id="sImgReply">
                  <a id="haReply" runat="server" style='cursor:hand' title='回复'>
                    <img src='../images/toolbar/reply.GIF'/>
                  </a>
               </span> 
             </td>
             <td style="width:10%" align="center">
               <span id="sImgForward">
                 <a id="haForward" runat="server" style='cursor:hand' title='转发'>
                    <img src='../images/toolbar/turn.GIF' style='cursor:hand'/>
                 </a>
               </span> 
             </td>
           </tr>
           <tr>
             <td colspan="4">
               &nbsp;<span id="sContent" runat="server"></span>
             </td>
           </tr>
           <tr>
                <td class="pformright" style="padding-left:5px" colspan="4">
                    <nobr>
                        附件：<uc1:AttachUpLoad ID="attach" ShowStyle="1" runat="server" />
                    </nobr>
                </td>
            </tr>
        </table>
    </form>
    
    <script language="javascript" type="text/javascript">
        $(document).ready(function(){
	            var oMsgId=document.getElementById("_hidMsgId").value;
                var oHeight=document.body.scrollHeight;
                var otable=parent.document.getElementById("tabViewMsg");
                var oRowsCount=otable.rows.length;
                var oRow;
                oRow=otable.rows.item("row_"+oMsgId);
                var oChild=oRow.children(0);
                oChild.children[0].height=oHeight;
            }
        );
    </script>
    
</body>
</html>
